import request from '@/utils/request'

export function submitComment(data) {
    return request({
        url: `/api/comment/add`,
        //post请求
        method: 'post',
        data
    })
}

//获取商家评论
export function getComment(data) {
    return request({
        headers: {"Content-Type": "application/json;charset=UTF-8"},
        url: `/api/comment/querybymerchantId/${data.merchantId}`,
        //post请求
        method: 'post',
        data
    })
}
